
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
//导入Vuex状态管理插件
import store from "store/index.js"

//import mock from "./mock/mock.js"
//按需引入网络库
import {$http} from '@escook/request-miniprogram'
//全局注册
uni.$http = $http
//增加拦截
$http.beforeRequest = function(options) {
	//条件、提示信息等 do somethimg...
	uni.showLoading({
		title: "当前的数据正在加载过程中......"
	})
}
//响应拦截 请求后隐藏loading效果
$http.afterRequest = function(data) {
	// console.log("第一个参数", data;
	uni.hideLoading()
}
















Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {createSSRApp} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(store)
	return {
		app
	}
}
// #endif